package com.brainhealth.customer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainhealth.common.annotation.Excel;
import com.brainhealth.common.core.domain.BaseEntity;

import java.util.List;

/**
 * AI聊天记录对象 room_chat_record
 * 
 * @author ruoyi
 * @date 2023-11-01
 */
public class RoomChatRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据库主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long customerId;

    /** 语言包ID */
    @Excel(name = "语言包ID")
    private Long chatPacketId;

    /** 聊天包ID集合 */
    private List<Long> chatPacketIdList;

    /** 角色（0：问题 1：答案） */
    @Excel(name = "角色", readConverterExp = "0=：问题,1=：答案")
    private Integer role;

    /** 聊天内容 */
    @Excel(name = "聊天内容")
    private String chatContent;

    /** 字数 */
    @Excel(name = "字数")
    private Long tokens;

    /** 是否删除0:未删除 1：已删除 */
    @Excel(name = "是否删除0:未删除 1：已删除")
    private Integer yn;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setChatPacketId(Long chatPacketId) 
    {
        this.chatPacketId = chatPacketId;
    }

    public Long getChatPacketId() 
    {
        return chatPacketId;
    }

    public List<Long> getChatPacketIdList() {
        return chatPacketIdList;
    }

    public void setChatPacketIdList(List<Long> chatPacketIdList) {
        this.chatPacketIdList = chatPacketIdList;
    }

    public void setRole(Integer role)
    {
        this.role = role;
    }

    public Integer getRole() 
    {
        return role;
    }
    public void setChatContent(String chatContent) 
    {
        this.chatContent = chatContent;
    }

    public String getChatContent() 
    {
        return chatContent;
    }
    public void setTokens(Long tokens) 
    {
        this.tokens = tokens;
    }

    public Long getTokens() 
    {
        return tokens;
    }
    public void setYn(Integer yn) 
    {
        this.yn = yn;
    }

    public Integer getYn() 
    {
        return yn;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerId", getCustomerId())
            .append("chatPacketId", getChatPacketId())
            .append("chatPacketIdList", getChatPacketIdList())
            .append("role", getRole())
            .append("chatContent", getChatContent())
            .append("tokens", getTokens())
            .append("yn", getYn())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
